/*
 * Copyright 2015-2016 Imply Data, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

@import '../../imports';

.nav-list {
  border-top: 1px solid #ddd;

  &:first-child {
    border-top: 0;
  }

  svg {
    height: 19px;
    width: 19px;
  }

  .group-title {
    padding-left: $nav-padding;
    text-transform: uppercase;
    font-size: 12px;
    padding-top: 15px;
    padding-bottom: 12px;
    color: #999;

    .icons {
      position: absolute;
      padding-right: $nav-padding;
      top: 1px;
      right: 0;
      cursor: pointer;

      .icon {
        display: inline-block;
        padding: 10px 1px;

        &:not(:first-child) {
          margin-left: 4px;
        }

        &:hover svg path {
          fill: #888;
        }
      }
    }
  }

  .items {
    .item {
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      display: block;
      line-height: 34px;
      padding-left: $nav-padding;
      padding-right: $nav-padding;
      cursor: pointer;

      .icon {
        display: inline-block;
        top: 7px;
        left: 0;
        margin-right: 9px;
      }

      &:hover {
        background: rgba($brand, 0.12);
      }
    }

    .selected {
      background: rgba($brand, 0.14);

      .icon svg path {
        fill: $brand;
      }
    }
  }
}
